package com.druid.enums;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ResponseDataEnums implements ResponseInterface {

    RESPONSE_SUCCESS(2000,"数据响应成功"),
    RESPONSE_SUCCESS_FORWORD_SWGGER(2001,"登入成功并重定向到swgger页面"),

    RESPONSE_FAIL_PARAMS(3000,"参数响应失败"),

    RESPONSE_FAIL_AUTHENTICATION(3001,"认证异常"),
    RESPONSE_FAIL_USERNAMEORPASSWORD_NOTFOUND(3002,"用户名或者密码输入错误，请重新输入"),
    RESPONSE_FAIL_DISABLED(3003,"账户被禁用，请联系管理员"),

    RESPONSE_FAIL_DENIED(3004,"拒绝访问"),
    RESPONSE_FAIL_NOPERMISSION(3005,"登入账号无权限"),

    RESPONSE_FAIL_NOT_LOGIN(3006,"用户未登入"),
    RESPONSE_FAIL_FREQUENTLY_VISIT(3007,"访问过于频繁，IP已被锁定"),


    RESPONSE_FAIL(5000,"数据响应失败"),

;

    private Integer statusCode;
    private String name;

    @Override
    public Integer getStatusCode() {
    return this.statusCode;
    }

    @Override
    public String getName() {
    return this.name;
    }
}
